import styled from 'styled-components'
import arrowRight from 'assets/icons/arrowRight.svg'
import Icon from 'components/Icon'

const SocialLinks = styled.div`
    & > * {
        margin: 0 9px;
    }
`
const ContactSection = styled.section`
    display: grid;
    row-gap: 18px;
`

const AlbumSection = styled.section`

`

const AlbumTitle = styled.div`
    justify-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;

    & >a{
        text-decoration: none;
        font-size: ${({ theme }) => theme.normal};
        color: ${({ theme }) => theme.primaryColor};
        &::after{
            display: inline-block;
            content: url(${arrowRight});
            margin-left: 2px;
        }
    }
`

const Album = styled.div`
    margin-top: 14px;
    justify-self: start;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
`

const Photo = styled.img`
    width: 76px;
    height: 76px;
    object-fit: cover;
`
const CloseIcon = styled(Icon).attrs({ opacity: 0.5 })`
    position: absolute;
    right: 30px;
    top: 40px;
    transform: scale(.9);
    cursor: pointer;
`

const StyledProfile = styled.div`
    display: grid;
    align-content: start;
    justify-content: center;
    justify-items: center;
    position: relative;
    padding: 30px;
    height: 100vh;
    overflow: auto;
`

export default StyledProfile
export { SocialLinks, ContactSection, AlbumSection, AlbumTitle, Album, Photo, CloseIcon }
